﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Landscape.Business.Entities
{
    public class VesselMachine
    {
        public VesselMachine()
        { }

        public virtual Guid ID
        { get; set; }

        public virtual MachineType Type
        { get; set; }

        public virtual VendorProduct Product
        { get; set; }

        public virtual Landscape.Business.MachineStatus Status
        { get; set; }

        public virtual string Specifications
        { get; set; }

        public virtual DateTime CommissionedDate
        { get; set; }

        public virtual DateTime? InUseSince
        { get; set; }

        public virtual DateTime? StandBySince
        { get; set; }

        public virtual DateTime LastOverhaulDate
        { get; set; }

        public virtual int UnitIndex
        { get; set; }

        public virtual IList<RunningHours> RunningHours
        { get; set; }

        public virtual Location Location
        { get; set; }

        public virtual bool IsDisabled
        { get; set; }

        public virtual bool IsDeleted
        { get; set; }

        public virtual IList<Job> Jobs
        { get; set; }

        public virtual IList<FileAttachment> Attachments
        { get; set; }

        public virtual VesselMachine Parent
        { get; set; }
        
        public virtual Guid CreatedBy
        { get; set; }

        public virtual DateTime CreatedDate
        { get; set; }

        public virtual Guid UpdatedBy
        { get; set; }

        public virtual DateTime UpdatedDate
        { get; set; }       
    }
}
